package com.it.smn.divide;

import com.it.smn.divide.annotation.EnableDynamicDataSource;
import com.it.smn.divide.loadbalance.LoadBalance;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author sunmannian
 */
@SpringBootApplication(scanBasePackages = {"com.it.smn.divide"})
@EnableAspectJAutoProxy
@MapperScan("com.it.smn.divide.dao")
@EnableDynamicDataSource(loadBalance = LoadBalance.RoundRobin)
public class RabbitmqDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(RabbitmqDemoApplication.class, args);
    }

}
